const path = require('path')
const fs = require('fs')
var str = ''
var str1 = 'module.exports={'
let len = 100000
for (let i = 0; i < len; i++) {
  str += `const name${i} = 'name${i}';`
  if (i === len - 1) {
    str1 += `name${i}`
  } else {
    str1 += `name${i},`
  }
}
str1 += '}'
fs.writeFile(path.join(__dirname, './demo.js'), str + 'console.log("demo over");'  + str1 , () => {

})